﻿using AutoMapper;
using Ebusiness_UserService.Model;
using Ebusiness_UserService.Services.Dtos.User;

namespace Ebusiness_UserService.ObjectMapping;

public class Ebusiness_UserServiceAutoMapperProfile : Profile
{
    public Ebusiness_UserServiceAutoMapperProfile()
    {
        /* Create your AutoMapper object mappings here */
        CreateMap<User, UserDto>().ReverseMap().ForMember(dist =>  dist.phoneNumber, opt => opt.MapFrom(src => src.phoneNumber));
        //CreateMap<User, UserDto>().ReverseMap().ForMember(dist => dist.userAccessFail, opt => opt.MapFrom(src => src.userAccessFailDto));
    }
}
